package com.ruoyi.yipaiju.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * fo_favorite对象 fo_favorite
 * 
 * @author liuwp
 * @date 2023-03-01
 */
public class Favorite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** client */
    @Excel(name = "client")
    private String client;

    /** foreclosed_house_id */
    @Excel(name = "foreclosed_house_id")
    private Long foreclosedHouseId;

    /** discount_house_id */
    @Excel(name = "discount_house_id")
    private Long discountHouseId;
    @Excel(name = "收藏类型", dictType = "fo_house_category")
    private Integer favoriteType;

    private ForeclosedHouse foreclosedHouse;
    private DiscountHouse discountHouse;

    public ForeclosedHouse getForeclosedHouse() {
        return foreclosedHouse;
    }

    public void setForeclosedHouse(ForeclosedHouse foreclosedHouse) {
        this.foreclosedHouse = foreclosedHouse;
    }

    public DiscountHouse getDiscountHouse() {
        return discountHouse;
    }

    public void setDiscountHouse(DiscountHouse discountHouse) {
        this.discountHouse = discountHouse;
    }

    public Integer getFavoriteType() {
        return favoriteType;
    }

    public void setFavoriteType(Integer favoriteType) {
        this.favoriteType = favoriteType;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClient(String client) 
    {
        this.client = client;
    }

    public String getClient() 
    {
        return client;
    }
    public void setForeclosedHouseId(Long foreclosedHouseId) 
    {
        this.foreclosedHouseId = foreclosedHouseId;
    }

    public Long getForeclosedHouseId() 
    {
        return foreclosedHouseId;
    }
    public void setDiscountHouseId(Long discountHouseId) 
    {
        this.discountHouseId = discountHouseId;
    }

    public Long getDiscountHouseId() 
    {
        return discountHouseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("client", getClient())
            .append("foreclosedHouseId", getForeclosedHouseId())
            .append("discountHouseId", getDiscountHouseId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
